package org.jeecg.modules.zhima.portal.controller;

import org.jeecg.modules.zhima.base.common.Result;
import org.jeecg.modules.zhima.portal.domain.HomeContentResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.modules.zhima.portal.service.IHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 首页内容管理Controller
 * Created by dingzg on 2019/1/28.
 */

@Controller
@Api(tags = "HomeController", description = "首页内容管理")
@RequestMapping("/index")
public class MHomeController {

    @Autowired
    private IHomeService IHomeService;


    @ApiOperation("首页内容页信息展示")
    @RequestMapping(value = "/index", method = RequestMethod.GET)
    @ResponseBody
    public Result<?> content() {
        HomeContentResult contentResult = IHomeService.content();
        return Result.ok(contentResult);
    }
}
